package cn.idietrade.idietradeusermodule8004.service.addressservice.impl;

import cn.idietrade.common.pojo.SecondAddress;
import cn.idietrade.idietradeusermodule8004.mapper.SecondAddressMapper;
import cn.idietrade.idietradeusermodule8004.service.addressservice.SecondAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zjy
 * @version 1.0
 * @createTime 2022-12-22 15:27
 * @description
 */
@Service
public class SecondAddressServiceImpl implements SecondAddressService {
    @Resource
    private SecondAddressMapper secondAddressMapper;
    @Override
    public List<SecondAddress> queryAddres(Integer userId) {
        return secondAddressMapper.queryAddres(userId);
    }

    @Override
    public int addAddres(SecondAddress secondAddress) {
        return secondAddressMapper.addAddres(secondAddress);
    }
}
